import { RouteRecordRaw } from 'vue-router'

import Layout from '@/layout/index.vue'

const homeRouter: RouteRecordRaw[] = [
  {
    path: '/home',
    component: Layout,
    redirect: '/home/dashboard',
    meta: {
      title: '首页',
      icon: 'HomeFilled',
    },
    children: [
      {
        path: 'dashboard',
        component: () => import('@/views/home/canvaskit.vue'),
        meta: {
          title: '首页',
          icon: 'Briefcase',
          hiddenBreadcrumb: true,
        },
      },
      {
        path: 'konva',
        component: () => import('@/views/home/konva.vue'),
        meta: {
          title: '首页',
          icon: 'Briefcase',
          hiddenBreadcrumb: true,
        },
      },
      {
        path: 'canvas',
        component: () => import('@/views/home/canvas.vue'),
        meta: {
          title: '首页',
          icon: 'Briefcase',
          hiddenBreadcrumb: true,
        },
      },
      {
        path: 'pixi',
        component: () => import('@/views/home/pixi.vue'),
        meta: {
          title: '首页',
          icon: 'Briefcase',
          hiddenBreadcrumb: true,
        },
      },
      {
        path: 'taichi',
        component: () => import('@/views/home/taichi.vue'),
        meta: {
          title: '首页',
          icon: 'Briefcase',
          hiddenBreadcrumb: true,
        },
      },
    ],
  },
]

export default homeRouter
